package homework2;

public class Test4 {

	public static void main(String[] args) {
		int i=100;
		int a=0,b=0,c=0;
		while(i<1000) {
			a=i/100;
			b=i%100/10;
			c=i%10;
			if((a*a*a+b*b*b+c*c*c)==i) {
				System.out.println(i);
			}
			i++;
		}

	}

}
